package com.ruoyi.web.controller.wx_driver;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.vqms.service.IVQMSLedService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/wx/led")
@Api(value = "led测试")
public class LedController {

    @Autowired
    IVQMSLedService ledService;

    @PutMapping(value = "/test")
    @Log(title = "测试发送信息给LED大屏", businessType = BusinessType.UPDATE)
    @ApiOperation(value = "传入信息测试发送", notes = "测试发送信息给LED大屏")
    public AjaxResult test(Long areaId) throws Exception {
        ledService.flushLesScreenData(areaId);
        return AjaxResult.success();
    }


}
